<?php
/**
 * 销售物料扩展数据结构
 *
 * @author kamisama.xia@gmail.com 
 * @version 0.1
 */

$db['sales_material_ext']=array (
  'columns' =>
  array (
    'sm_id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'width' => 110,
      'hidden' => true,
      'editable' => false,
      'pkey' => true,
    ),
    'cost' =>
    array (
      'type' => 'money',
      'default' => '0.000',
      'label' => '物料成本价',
      'width' => 110,
    ),
    'retail_price' =>
    array (
      'type' => 'money',
      'default' => '0.000',
      'label' => '物料售价',
      'width' => 75,
    ),
    'weight' =>
    array (
      'type' => 'decimal(20,3)',
      'label' => '重量',
      'default' => '0.000',
      'width' => 110,
      'editable' => false,
    ),
    'unit' =>
    array (
      'type' => 'varchar(20)',
      'label' => '包装单位',
      'width' => 100,
      'editable' => false,
    ),
  ),
  'comment' => '销售物料扩展表',
  'engine' => 'innodb',
  'version' => '$Rev:  $',
);
